package org.liushengpei.com.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.liushengpei.com.domain.GoodsAddress;

import java.util.List;

/**
 * 收货地址
 */
public interface IGoodsAddressService extends IService<GoodsAddress> {

    /**
     * 新增收货地址
     */
    String addGoodsAddress(GoodsAddress goodsAddress);

    /**
     * 修改收货地址
     */
    String editGoodsAddress(GoodsAddress goodsAddress);

    /**
     * 查询所有收货地址
     */
    List<GoodsAddress> queryListByUserId(String userId);

    /**
     * 删除收货地址
     */
    String delOneById(String id);

    /**
     * 查询收货地址详细信息
     */
    GoodsAddress queryDetail(String id);

    /**
     * 修改默认地址
     */
    String updateAddressTag(String id, String userId);
}
